package com.example.book_recommend.service;

import com.example.book_recommend.entity.Privilege;
import com.example.book_recommend.entity.Role;
import com.example.book_recommend.entity.RolePrivilege;

import java.util.List;

public interface RoleService {
    List<Role> getRolesByPage(Integer page, Integer size);
    Role getRoleById(Integer roleId);
    int addRole(Role role);
    int updateRoleById(Role role);
    int deleteById(Integer roleId);


    int addPrivilege(RolePrivilege rolePrivilege);
}
